export function classifi(id){
	return new Promise((resolve,reject)=>{
		uni.request({
			url: "uni-app/classification/list",
			data: {
				id
			},
			success(res) {
				if(res.statusCode === 200){
					resolve(res.data);
				}
			},
			fail:(err)=> {
				reject(err);
			}
		})
	})
}

export function shopCount(){
	return new Promise((resolve,reject)=>{
		uni.request({
			url:'uni-app/shopping-carts/goodsShopCount',
			success(res) {
				resolve(res.data);
			},
			fail: (err) => {
				reject(err);
			}
		})
	})
}